package com.liang.file;

import java.io.File;
import java.io.IOException;

public class FileText1 {
    public static void main(String[] args) throws IOException {
//        method1();

//        method2();

//        method3();
    }

    public static void method3() {
        File file = new File("D:\\itheima\\aaa\\bbb\\ccc\\ddd");
        boolean mkdirs = file.mkdirs();
        System.out.println(mkdirs);
    }

    public static void method2() throws IOException {
        File file1 = new File("D:\\itheima", "a.txt");
        boolean newFile = file1.createNewFile();
        System.out.println(newFile);
    }

    public static void method1() {
        File file = new File("D:\\itheima\\aaa");
        boolean mkdirs = file.mkdirs();
        System.out.println(mkdirs);
    }
}
